package com.yuyu.service;

import com.yuyu.bean.Classify;
import com.yuyu.bean.PageData;
import com.yuyu.bean.PageDataOfMybatis;
import com.yuyu.bean.ResultData;

import java.util.List;

public interface ClassifyService {
    int addClassify(Classify classify);
    List<Classify> findAllClassify();
    int deleteClassify(Integer code);
    //获得最新插入的ID
    Integer getLastInsertCode();
    //获得一页的数据
    List<Classify> getOnePageList(PageDataOfMybatis pageDataOfMybatis);
    //获得纪录总数
    Integer getCowsCount();
    //批量删除
    Integer deleteClassifys(List<Integer> list);

}
